package com.aaa.dao.sds;

import com.aaa.entity.sds.QuestionSds;

import java.util.List;
import java.util.Map;

/**
 * 问题表(TblQuestionSds)表数据库访问层
 *
 * @author makejava
 * @since 2022-08-30 10:35:12
 */
public interface QuestionSdsDao {

    /**
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 查询所有带分页
     * @create time: 2022/8/30 10:39
     */
    List<Map<String, Object>> queryQuestionSdsPage(QuestionSds questionSds);


    /**
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 添加
     * @create time: 2022/8/31 9:23
     */
    boolean insertQuestion(QuestionSds questionSds);


    /**
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 修改
     * @create time: 2022/8/31 9:23
     */
    boolean updateQuestion(QuestionSds questionSds);


    /**
     * @param id
     * @return
     * @create by: 张恒
     * @description: 删除单个
     * @create time: 2022/8/31 9:23
     */
    boolean deleteQuestionById(Integer[] id);

    /**
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 添加修改问题时的唯一效验
     * @create time: 2022/8/31 18:47
     */
    Integer repetitionName(QuestionSds questionSds);
}

